FLAGS= -g -o
INCLUDE= -I$(CUBESYSPATH)/include/ -I$(CUBELIBPATH)/include -I$(CUBEAPPPATH)/include
CFLAGS= -g -c -fPIC -Wall -DUSER_MODE 
CC=gcc
LD=ld
CCP=g++
#STRUCTOBJ= read_config.o 
DEPENDLIB= -L$(CUBELIBPATH)/lib -lmemdb -lbasefunc -lcrypto_func -lstruct -ljson -lalloc -lstring

main: test_main
test_main: test_main.c 
	$(CC) $(FLAGS) test_main test_main.c -L../lib $(INCLUDE) $(DEPENDLIB)   
read_config.o:  read_config.c 
	$(CC) $(CFLAGS) read_config.c
clean:
	rm -f test_main *~ *.a *.o
